package com.wsoft.hr.pm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

/**
 * <p>
 * 活动周期
 * </p>
 *
 * @author zhanggukai
 * @since 2025年02月25日 11:28:01
 */
@Getter
@Setter
@TableName("hr_pm_cycle")
@Schema(name = "HrPmCycleEntity", description = "活动周期")
public class HrPmCycleEntity extends BaseEntity {

    @Schema(description = "编码")
    @TableField("code")
    private String code;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "年度")
    @TableField("years")
    private String years;

    @Schema(description = "类型（年度、半年度、季度、月度、自定义）")
    @TableField("type")
    private String type;

    @Schema(description = "开始时间")
    @TableField("begin_date")
    private LocalDate beginDate;

    @Schema(description = "结束时间")
    @TableField("end_data")
    private LocalDate endData;

    @Schema(description = "截止时间")
    @TableField("expire_date")
    private LocalDate expireDate;

    @Schema(description = "是否启用")
    @TableField("enable")
    private Integer enable;

    @Schema(description = "所属组织")
    @TableField("hr_org_id")
    private Long hrOrgId;
}
